package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.qijian.common.annotation.JoinField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 生产位置对象 main_line_change_work
 *
 * @author qijian
 * @date 2022-02-23
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_line_change_work")
public class LineChangeWork extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** ID */
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    @TableId
    private Long unitId;

    /** 线路ID */
    @Excel(name = "线路ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "线路ID")
    private Long lineId;

    /** 线路编码 */
    @Excel(name = "线路编码")
    @ApiModelProperty(value = "线路编码")
    private String lineCode;

    /** 工序ID */
    @Excel(name = "工序ID")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工序ID")
    @JoinField
    private Long processId;

    /** 工序编号 */
    @Excel(name = "工序编号")
    @ApiModelProperty(value = "工序编号")
    private String processCode;

    /** 生产单元 */
    @Excel(name = "生产单元")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "生产单元")
    private Long factoryId;

    /** 生产单元编码 */
    @Excel(name = "生产单元编码")
    @ApiModelProperty(value = "生产单元编码")
    private String factoryCode;

    /** 生产单元名称 */
    @Excel(name = "生产单元名称")
    @ApiModelProperty(value = "生产单元名称")
    private String factoryName;

    /** 生产单元类型 */
    @Excel(name = "生产单元类型")
    @ApiModelProperty(value = "生产单元类型")
    private String factoryType;

    /** 负责人 */
    @Excel(name = "负责人")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "负责人")
    private Long chargeId;

    /** 负责人名称 */
    @Excel(name = "负责人名称")
    @ApiModelProperty(value = "负责人名称")
    private String chargeName;

}
